Get-WmiObject win32_processor | select LoadPercentage  |fl
Get-WmiObject win32_processor | Measure-Object -property LoadPercentage -Average | Select Average
Get-Counter '\Memory\Available MBytes'
Get-Counter -ListSet *memory* | Select-Object -ExpandProperty  Counter
Get-Counter '\Processor(_Total)\% Processor Time'
Get-Counter '\Process(*)\% Processor Time' `
    | Select-Object -ExpandProperty countersamples `
    | Select-Object -Property instancename, cookedvalue `
    | Sort-Object -Property cookedvalue -Descending | Select-Object -First 20 `
    | ft InstanceName,@{L='CPU';E={($_.Cookedvalue/100).toString('P')}} -AutoSize